<?php
/* ===========================================
 * Want to try and encompass all low level queries
 * In a class so they can be called from multiple views
 */
class Cerad_Query
{
	function __construct($context)
	{
		$this->context = $context;
	}
	function getContext() { return $this->context; }
	function getDb()      { return $this->context->getDb(); }
	
	/* This kicks off a query and returns a simple array of data
	 * It should always return at least an empty array
	 * 
	 * If errors are encountered then a QueryException should probably be thrown
	 */
	function execute($data)
    {
    	return array();
    }
}
?>